package com.joysuch.wwyt.bp.bean.risk;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.List;

/**
 * @Author ZhangDong
 * @Date 2020/3/16 10:50
 */
@Data
public class BpCompanyBean {

    @ApiModelProperty("表主键id，修改时传值")
    private Long id;

    //生产装置

    @ApiModelProperty("合计数量")
    private Integer deviceSum;

    @ApiModelProperty("运行数量")
    private Integer deviceExecuteSum;

    @ApiModelProperty("停产数量")
    private Integer deviceStopSum;

    @ApiModelProperty("检修数量")
    private Integer deviceRepairSum;

    //作业许可

    @ApiModelProperty("特种作业集合")
    private List<BpTeamSpecialBean> specialBeanList;

    @ApiModelProperty("是否处于试生产")
    private String preProduceOrNot;

    @ApiModelProperty("是否处于开停车状态")
    private String driveOrNot;

    @ApiModelProperty("重大危险源")
    private String harzard;

    @ApiModelProperty("企业承诺")
    private String enterprisePromise;

    @ApiModelProperty("主要负责人")
    private String mainCharger;

    @ApiModelProperty("发布公司")
    private String releaseCompany;

    @ApiModelProperty("公告时间 eg:2020-03-16")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @NotNull(message = "请选择公告时间")
    private LocalDate announceTime;

    @ApiModelProperty("罐区、仓库等重大危险源是否处于安全状态")
    private String majorHazardIsSafe;

    @ApiModelProperty("是否有外来承包商")
    private String hasContractor;
    @ApiModelProperty("签名")
    private String autograph;
    //风险等级 参照枚举 RiskLevels
    @ApiModelProperty("风险等级")
    private Integer riskLevel;
    @ApiModelProperty("风险等级名称")
    private String riskLevelName;
}
